﻿using System;
using System.Collections.Generic;
using System.Text;

namespace Jargon.Resources
{
    /// <summary>
    /// Represents a Jargon culture
    /// </summary>
    public class JargonCulture
    {
        private string description;
        /// <summary>
        /// Gets the description of the Jargon
        /// </summary>
        public string Description
        {
            get { return description; }
        }

        private string language;
        /// <summary>
        /// Gets the language code for the Jargon
        /// </summary>
        public string Language
        {
            get { return language; }
        }

        private string substitution;
        /// <summary>
        /// Gets the substitution culture code for this Jargon
        /// </summary>
        public string Substitution
        {
            get { return substitution; }
        }

        private Dictionary<string, string> strings;
        /// <summary>
        /// Contains the key/value pairs of the text in a Jargon
        /// </summary>
        public Dictionary<string, string> Strings
        {
            get { return strings; }
        }

        public JargonCulture(string language, string description)
            : this(language, description, string.Empty)
        {
        }

        public JargonCulture(string language, string description, string substitution)
        {
            this.language = language;
            this.description = description;
            this.substitution = substitution;
            strings = new Dictionary<string, string>();
        }
    }
}
